﻿using SUNRPA.CONTROLS.IMPL.domain.attrubutes;
using SUNRPA.CONTROLS.IMPL.domain.constant;
using SUNRPA.CONTROLS.IMPL.domain.flowRunningVar;
using SUNRPA.CONTROLS.IMPL.util;
using System.Collections.Concurrent;
/// <summary>
/// Excel有Office和Wps目前只支持Office后期加入Wps支持。
/// </summary>
namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [VarFieldName("OutVarName")]
    [Serializable]
    public class CreateDirNParam : BaseParam {
        private string fatherDir = "";
        private string dirName = "";
        private string outVarName = "newDirPath";
        public string FatherDir {
            get => fatherDir; 
            set {
                fatherDir = value;
                NotifyPropertyChanged("FatherDir");
            }  
        }
        public string DirName {
            get => dirName; 
            set {
                dirName = value;
                NotifyPropertyChanged("DirName");
            }
         }
        public string OutVarName {
            get => outVarName;
            set
            {
                outVarName = value;
                NotifyPropertyChanged("OutVarName");
            }
        }
        public override void SetLatestVarName(ConcurrentDictionary<string, ConcurrentDictionary<string, RPAVariableDefineWrapper>> globleData) {
            this.outVarName = this.GetLatestName(this.outVarName, globleData);
        }
    }
}
